<form action="{$smarty.server.PHP_SELF}" name='itemView' method='POST'>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td  class="table1" align='center'><B>&nbsp;</td>
  <td  class="table1" align='center'><B>&nbsp;</td>
	<td  class="table1" align='center'><B>Sr.No</td>
	<td  class="table1" align='center'><B>Product Name</td>
	<td  class="table1" align='center'><B>Category</td>
	<td  class="table1" align='center'><B>Sub Category</td>
	<td  class="table1" align='center'><B>Product Make</td>
	<td  class="table1" align='center'><B>Model No.</td>
	<td  class="table1" align='center'><B>Current Stock</td>
	<td  class="table1" align='center'><B>Max Level</td>
	<td  class="table1" align='center'><B>Min Level</td>
</tr>
{section name="sec" loop=$itemDetailArray}
<tr>
  <td class="table3" align="center">
    <a href="item.php?itemId={$itemDetailArray[sec].itemId}"class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
	</td>
	<td class="table3" align="center">
		<a href="itemDelete.php?itemId={$itemDetailArray[sec].itemId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>
	</td>
	<td class="table3" align="center">{$smarty.section.sec.rownum}</td>
	<td class="table3" align="left">{$itemDetailArray[sec].itemName} </td>
	<td class="table3" align="left"> {$itemDetailArray[sec].categoryName}</td>
	<td class="table3" align="left"> {$itemDetailArray[sec].subCategoryName}</td>
	<td class="table3" align="left" NOWRAP> {$itemDetailArray[sec].itemMake}</td>
	<td class="table3" align="left" NOWRAP> {$itemDetailArray[sec].modelNo}</td>
	<td class="table3" align="right"> {$itemDetailArray[sec].currentStock}</td>
	<td class="table3" align="right"> {$itemDetailArray[sec].maxLevel}</td>
	<td class="table3" align="right"> {$itemDetailArray[sec].minLevel}</td>
</tr>
{sectionelse}
<tr><td class="table2" align="center" colspan="9"> <h2><font color="red"><b> Empty Record.....</b></font></h2></td></tr>
{/section}
</table>
</form>